package cn.cuilan.test;

import java.util.Random;

public class HelloWorld {

    public static void main(String[] args) {
        char c = 32;
        System.out.println(randomString(-229985452) + c + randomString(-147909649));
    }

    private static String randomString(int seed) {
        Random random = new Random(seed);
        StringBuilder sb = new StringBuilder();
        while (true) {
            int i = random.nextInt(27);
            if (i == 0) {
                break;
            }
            sb.append((char) ('`' + i));
        }
        return formatString(sb);
    }

    private static String formatString(StringBuilder sb) {
        char[] chars = sb.toString().toCharArray();
        int charNo = chars[0] == 104 ? 72 : 87;
        chars[0] = (char) charNo;
        sb = new StringBuilder();
        for (char c : chars) {
            sb.append(c);
        }
        return sb.toString();
    }
}
